package JavaSEAdvance.day02_interface.HomeWork02_liang;


public class Breeder {

    public void breed(Animal a){

        a.drinking();
        a.eat();
        if(a instanceof Swimming){
            Swimming s= (Swimming) a;
            s.swimming();
        }
        System.out.println();
    }

}
